package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.SchoolUser1;
import com.ruoyi.system.mapper.SchoolMapper1;
import com.ruoyi.system.service.ISchoolService1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SchoolServiceImpl1 implements ISchoolService1 {
    @Autowired
    private SchoolMapper1 schoolMapper1;

    @Override
    public String add(SchoolUser1 schoolUser1) {

        int add = schoolMapper1.add(schoolUser1);
        if(add==1){
            return "添加成功";
        }else {
            return "添加失败";
        }

    }
}
